package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedMapper;
import com.hcb.micro.dto.CashRed;
import com.hcb.micro.service.ICashRedService;

@Service("CashRedService")
public class CashRedServiceImpl implements ICashRedService {

	@Autowired
	CashRedMapper cashRedMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return cashRedMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRed record) {
		return cashRedMapper.insert(record);
	}

	@Override
	public int insertSelective(CashRed record) {
		return cashRedMapper.insertSelective(record);
	}

	@Override
	public CashRed selectByPrimaryKey(Integer id) {
		return cashRedMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRed record) {
		return cashRedMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CashRed record) {
		return cashRedMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<CashRed> selectAllByPara(Map<String,Object> para) {
		return cashRedMapper.selectAllByPara(para);
	}

	@Override
	public List<CashRed> selectByPara(Map<String, Object> para) {
		return cashRedMapper.selectByPara(para);
	}

}
